package com.jnzc.ocr.serv.third.prop;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix="captcha")
public class CaptchaProp {

    private Integer captchaExpireTime = 600; // 验证码过期时间
    private Integer historyExpireTime = 86400; // 历史过期时间
    private Integer createIntervalTime = 60; // 生成时间间隔（默认生成间隔1分钟）
    private Integer createCycleTime = 300; // 一段时间内可生成验证码的次数(默认5分钟最多发3次)
    private Integer createCycleCount = 3; // 一段时间内可生成验证码的次数(默认5分钟最多发3次)
    private Integer createMaxCount = 50; // 一天生成验证码最大数量（默认最多50条）
    private String alwaysCaptcha; // 生成固定验证码

    public Integer getCaptchaExpireTime() {
        return captchaExpireTime;
    }

    public void setCaptchaExpireTime(Integer captchaExpireTime) {
        this.captchaExpireTime = captchaExpireTime;
    }

    public Integer getHistoryExpireTime() {
        return historyExpireTime;
    }

    public void setHistoryExpireTime(Integer historyExpireTime) {
        this.historyExpireTime = historyExpireTime;
    }

    public Integer getCreateIntervalTime() {
        return createIntervalTime;
    }

    public void setCreateIntervalTime(Integer createIntervalTime) {
        this.createIntervalTime = createIntervalTime;
    }

    public Integer getCreateCycleTime() {
        return createCycleTime;
    }

    public void setCreateCycleTime(Integer createCycleTime) {
        this.createCycleTime = createCycleTime;
    }

    public Integer getCreateCycleCount() {
        return createCycleCount;
    }

    public void setCreateCycleCount(Integer createCycleCount) {
        this.createCycleCount = createCycleCount;
    }

    public Integer getCreateMaxCount() {
        return createMaxCount;
    }

    public void setCreateMaxCount(Integer createMaxCount) {
        this.createMaxCount = createMaxCount;
    }

    public String getAlwaysCaptcha() {
        return alwaysCaptcha;
    }

    public void setAlwaysCaptcha(String alwaysCaptcha) {
        this.alwaysCaptcha = alwaysCaptcha;
    }
}
